<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<div id="box1">
			首页
		</div>
		<div id="box2">
			实战
		</div>
		<script type="text/javascript">
			var oBox1 = document.getElementById("box1")
			var oBox2 = document.getElementById("box2")
			oBox1.onclick = function  (ev) {
				//事件源：事件发生在谁身上
				var ev = ev || event
				console.log(ev.target)
			}
		</script>
	</body>
</html>
